<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<input type="hidden" id="action" value="add.do">
<table id="view_detail">

  #foreach($c in $ColumnList)
  #if($c.IsPrimary)
  <!--<input type="hidden"  id="hd${c.ColumnNameAlias}" name="${c.ColumnNameAlias}" value="0"/>-->
  #elseif($c.ColumnType=="Date")
  #if(($c.ColumnName!="Update_Date")&&($c.ColumnName!="Create_Date"))
  <tr>
    <td  class="tdleft">
      <@spring.message "${c.ColumnNameAlias}"/>
      ：
    </td>
    <td class="tdright">
      <input type="text" id="txt${c.ColumnNameAlias}" name="${c.ColumnNameAlias}" class="easyui-datetimebox inputwidth" required="true"
             style="width: 120px;" data-options="editable:false"/>
    </td>
  </tr>
  #end
  #elseif($c.ColumnType=="Integer")
  #if($c.ColumnName=="Status")
  <tr>
    <td  class="tdleft">
      <@spring.message "${c.ColumnNameAlias}"/>：
    </td>
    <td class="tdright">
      <@html  type="radio" name="status" enumName="SwitchStatus" />
    </td>
  </tr>
  #else
  <tr>
    <td  class="tdleft">
      <@spring.message "${c.ColumnNameAlias}"/>：
    </td>
    <td class="tdright">
      <input type="text" id="txt${c.ColumnNameAlias}" name="${c.ColumnNameAlias}" class="easyui-numberspinner inputwidth" required="true"
             style="width: 120px;"  data-options="value:1,min:0"/>
    </td>
  </tr>
  #end
  #elseif($c.ColumnType=="String")
  <tr>
    <td  class="tdleft">
      <@spring.message "${c.ColumnNameAlias}"/>：
    </td>
    <td class="tdright">
      <input type="text" id="txt${c.ColumnNameAlias}" name="${c.ColumnNameAlias}" class="easyui-validatebox inputwidth" required="true"
             style="width: 220px;" validType="length[0,${c.ColumnMaxLen}]"/>
    </td>
  </tr>
  #else
  <tr>
    <td  class="tdleft">
      <@spring.message "${c.ColumnNameAlias}"/>：
    </td>
    <td class="tdright">
      <input type="text" id="txt${c.ColumnNameAlias}" name="${c.ColumnNameAlias}" class="easyui-validatebox inputwidth" style="width: 220px;"/>
    </td>
  </tr>
  #end
  #end
</table>
